package com.tang.param_check.service;

import com.tang.param_check.aspect.annotation.MultiParamCheck;
import com.tang.param_check.aspect.handler.UserAfterHandler;
import com.tang.param_check.aspect.handler.UserBeforeHandler;
import com.tang.param_check.aspect.handler.UserHandler;
import com.tang.param_check.domain.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @MultiParamCheck(handlerNames = {
            UserHandler.class}
            , serialNumbers = {1})
    public void test(List<User> firstList, User user, List<User> secondList) {
        System.out.println("顺利执行完毕！");
    }


}
